home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Script Examples / Simple Atom Extender / Makefile < prev    next >
Encoding:
Makefile  |  1996-09-26  |  3.7 KB  |  94 lines  |  [TEXT/MPS ]

  1. #
  2. #    makefile for "Simple Atom Ext.r", the example for InstaCompOne resource compression
  3. #
  4. #
  5. #        to build installer script :
  6. #            1) select "Build" from "Build" menu
  7. #            2) type script name "Simple Atom Ext" ( note: ".r" is omitted )
  8. #            
  9. #        to build debug version of installer script :
  10. #            1) select "Build" from "Build" menu
  11. #            2) type script name "Simple Atom Ext.debug" ( note: ".r" is omitted )
  12. #            
  13. #        NOTE:  When this script is built, ScriptCheck will display a couple of warning
  14. #               messages stating that you should "use a ScriptCheck extension to compute
  15. #               the correct target size" for 'infa' ID = 10000 and 'inra' ID = 10000.
  16. #               Since our example atom extender does not effect the file size, this 
  17. #               ScriptCheck extension is not necessary.  
  18.  
  19.  
  20.  
  21.  
  22. # • script names
  23. scriptName                = Simple Atom Ext
  24. debugScriptName            = {scriptName}.debug
  25.  
  26. sourceFile                = DirectCopyExtender
  27.  
  28. scriptCheckVersExtName    = DirectCopySCVersExt
  29. scriptCheckInfoExtName    = DirectCopySCInfoExt
  30. scriptCheckExtName        = DirectCopySCExt
  31. sourceSCExtFile            = DirectCopyScriptCheckExt
  32.  
  33.  
  34. OBJECTS                    = DirectCopyExtender.c.o
  35. ScriptCheckDir            = :::Tools:Released:ScriptCheck 4.0.3:
  36. InstallerCIncDir        = :::DeveloperInterfaces:CIncludes:
  37. InstallerCSrcDir        = :::DeveloperInterfaces:CSources:
  38. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  39. InstallerDebuggerDir    = :::Tools:Released:Installer Debugger 4.0.3:
  40.  
  41. COptions        = -b -r -sym off
  42. LinkOptions        = -mf -sym off
  43.  
  44. "{debugScriptName}" ƒ "{scriptName}"
  45.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  46.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  47.  
  48. "{scriptName}" ƒƒ "{sourceFile}" "{scriptName}.r" "{scriptName}.scx"
  49.     set theTime    "'`date -d -s` 12:00:00 PM'"
  50.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  51.     SetFile -a b -d {theTime} "{scriptName}"
  52.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  53.     SetFile -m {theTime} "{scriptName}"
  54.  
  55.  
  56. "{sourceFile}" ƒƒ Makefile "{OBJECTS}"
  57.     Link {LinkOptions} -t rsrc -c RSED -rt infn=144 -m "{sourceFile}" -sg "{sourceFile}" ∂
  58.         "{OBJECTS}" ∂
  59.         "{Libraries}Interface.o" ∂
  60.         -o "{sourceFile}"
  61.         
  62. "{sourceFile}.c.o" ƒ Makefile "{sourceFile}.c"
  63.     SC {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"
  64.  
  65. "{scriptCheckExtName}" ƒƒ Makefile "{scriptCheckExtName}.r" "{scriptCheckInfoExtName}.rsrc" "{scriptCheckVersExtName}.rsrc"
  66.     Rez -o "{scriptCheckExtName}.rsrc" "{scriptCheckExtName}.r" -t rsrc -c RSED -i "{InstallerRIncDir}"
  67.     DeRez "{scriptCheckInfoExtName}.rsrc" | Rez -o "{scriptCheckExtName}.rsrc" -append
  68.     DeRez "{scriptCheckVersExtName}.rsrc" | Rez -o "{scriptCheckExtName}.rsrc" -append
  69.  
  70. "{scriptCheckInfoExtName}.rsrc" ƒƒ Makefile "{sourceSCExtFile}.c.o"
  71.     Link {LinkOptions} -t rsrc -c RSED -rt scfn=129 -m main -sg Main ∂
  72.         "{sourceSCExtFile}.c.o" ∂
  73.         "{Libraries}Interface.o" ∂
  74.         -o "{scriptCheckInfoExtName}.rsrc"
  75.  
  76. "{sourceSCExtFile}.c.o" ƒ Makefile "{sourceSCExtFile}.c"
  77.     SC {COptions} "{sourceSCExtFile}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"        
  78.  
  79. "{scriptCheckVersExtName}.rsrc" ƒƒ Makefile "{scriptCheckVersExtName}.c.o"
  80.     Link {LinkOptions} -t rsrc -c RSED -rt scfn=130 -m main -sg Main ∂
  81.         "{scriptCheckVersExtName}.c.o" ∂
  82.         "{Libraries}Interface.o" ∂
  83.         -o "{scriptCheckVersExtName}.rsrc"
  84.  
  85. "{scriptCheckVersExtName}.c.o" ƒ Makefile "{scriptCheckVersExtName}.c"
  86.     SC {COptions} "{scriptCheckVersExtName}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"        
  87.  
  88. # be sure that's there's a copy of the DirectCopy ScriptCheck extension in current folder
  89.  
  90. "{scriptName}.scx" ƒ "{scriptCheckExtName}"
  91.     # copy and rename the original scriptcheck extension
  92.     Duplicate -y "{scriptCheckExtName}.rsrc" "{scriptName}.scx"
  93.  
  94.